.class public Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;
.super Ljava/lang/Object;
.source "ViewSendGlympse.java"

# interfaces
.implements Landroid/view/View$OnKeyListener;
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewSendGlympse;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "OnTextChangedListenerRecipient"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewSendGlympse;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/ViewSendGlympse;)V
    .locals 0
    .parameter

    .prologue
    .line 857
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 0
    .parameter "s"

    .prologue
    .line 908
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .parameter "s"
    .parameter "start"
    .parameter "count"
    .parameter "after"

    .prologue
    .line 913
    return-void
.end method

.method public onKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "oView"
    .parameter "nKeyCode"
    .parameter "oKeyEvent"

    .prologue
    .line 862
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->UpdateSendButton()V

    .line 865
    const/16 v0, 0x42

    if-ne v0, p2, :cond_2

    .line 868
    if-eqz p3, :cond_0

    invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 871
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->AddRecipientIfPossible()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 874
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$3(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/AutoCompleteTextView;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/Glympse;->SetFocusEvenInTouchMode(Landroid/view/View;)V

    .line 899
    :cond_0
    :goto_0
    const/4 v0, 0x1

    .line 902
    :goto_1
    return v0

    .line 883
    :cond_1
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/Glympse;->HideKeyboard()V

    .line 894
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->access$8(Lcom/glympse/android/glympse/ViewSendGlympse;)Landroid/widget/Button;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/Glympse;->SetFocusEvenInTouchMode(Landroid/view/View;)V

    goto :goto_0

    .line 902
    :cond_2
    const/4 v0, 0x0

    goto :goto_1
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 1
    .parameter "s"
    .parameter "start"
    .parameter "before"
    .parameter "count"

    .prologue
    .line 918
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSendGlympse$OnTextChangedListenerRecipient;->this$0:Lcom/glympse/android/glympse/ViewSendGlympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewSendGlympse;->UpdateSendButton()V

    .line 919
    return-void
.end method
